package com.lp.common.poster.entity;

import com.lp.common.poster.annotation.PosterBackground;
import com.lp.common.poster.annotation.PosterFontCss;
import com.lp.common.poster.annotation.PosterImageCss;
import lombok.Data;

import java.awt.*;
import java.awt.image.BufferedImage;

/**
 * @program: biz
 * @description:
 * @author: Ke.Song
 * @since: 2024-04-04 1:59:22
 */
@Data
public class BasePoster {

    /**
     * 背景图
     */
    @PosterBackground(width = 315, height = 280)
    private BufferedImage backgroundImage;

    /**
     * 头像
     */
    @PosterImageCss(position = {48, 48}, width = 135, height = 135, circle = true)
    private BufferedImage headImage;

    /**
     * 昵称
     */
    @PosterFontCss(position = {198, 48}, color = {2, 28, 84}, style = Font.BOLD, size = 54, canNewLine = {1, 550, 0}, ellipsis = false)
    private String nickName;

    /**
     * 二维码
     */
    @PosterImageCss(position = {217, 204}, width = 60, height = 60)
    private BufferedImage qrCode;
}
